package com.cx.atguigu.config;

import dev.langchain4j.model.chat.ChatModel;
import dev.langchain4j.model.openai.OpenAiChatModel;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Description:
 *
 * @Author atguigu
 * @Create 2025/8/25 20:16
 * @Version 1.0
 */
@Configuration
public class LLMConfig {
    @Bean
    public ChatModel chatModelQwen(){
        return OpenAiChatModel.builder().apiKey(System.getenv("aliQwen-api"))
                .modelName("qwen-plus")
                .baseUrl("https://dashscope.aliyuncs.com/compatible-mode/v1").build();
    }

}
